package com.topisv.tms.repository.message;

import java.util.List;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.topisv.tms.entity.message.Message;

/**
 * 站内信_DAO
 * @author ch
 *
 */
public abstract interface MessageDao extends PagingAndSortingRepository<Message, Long>, JpaSpecificationExecutor<Message>
{

	@Query("select t from Message t where t.jobuuidAccept=? and t.isDeleted='0' ")
	List<Message> loadByJobuuid(String jobuuid);


}